<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
 <link rel="stylesheet" href="<%=path%>/js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path%>/js/kindeditor/plugins/code/prettify.css" />
<script src="<%=path%>/js/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#info', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source','undo','redo','copy','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
});

});
</script>

<<div class="content">
          <div class="cLineB"><h4>添加文章分类</h4><a href="javascript:history.go(-1);"  class="right btnGrayS vm" style="margin-top:-27px" >返回</a></div> 
<div class="msgWrap">
  <form class="form" method="post"   action="<%=path%>/user/classify!addTo.do"  target="_top" enctype="multipart/form-data" >
<TABLE class="userinfoArea" style=" margin:20px 0 0 0;" border="0" cellSpacing="0" cellPadding="0" width="100%">
  <THEAD>
<TR>
  <TH valign="top"><label for="keyword">分类名称：</label></TH>
  <input type="hidden" name="classify.id" value="${vo.id}">
  <TD><input type="input" class="px" id="keyword" value="${vo.name}" name="classify.name" style="width:500px" ><br />
                  </TD>
  <TD>&nbsp;</TD>
</TR>
                            </THEAD>
  <TBODY>
<TR>
  <TH valign="top"><label for="keyword">分类描述：</label></TH>
  <TD><input type="input" class="px" id="keyword" value="${vo.info }" name="classify.info" style="width:500px" ><br />
                  30个字简短分类描述，可为空   </TD>
  <TD>&nbsp;</TD>
</TR>
<TR>
  <TH valign="top"><label for="keyword">分类图片外链地址：</label></TH>
  <TD><input type="input" class="px" id="keyword" value="${vo.imgsrc}" name="classify.imgsrc" style="width:500px" ><br />
                  为了提搞速度，建议将图片上传百度bae然后获取链接地址，微信限制3秒内无反应将终止；图片(宽720高400)  </TD>
  <TD>&nbsp;</TD>
</TR>
<TR>
  <TH valign="top"><label for="keyword">外链网站或活动 ：</label></TH>
  <TD><input type="input" class="px" id="keyword" value="${vo.url }" name="classify.url" style="width:500px" ><br />
                   </TD>
  <TD>&nbsp;</TD>
</TR>
<TR>
  <TH valign="top"><label for="keyword">排序：</label></TH>
  <TD><input type="input" class="px" id="keyword" value="${vo.sorts }" name="classify.sorts" style="width:500px" ><br />
                   </TD>
  <TD>&nbsp;</TD>
</TR>
<TR>
  <TH valign="top"><label for="keyword">是否显示：</label></TH>
  <TD>
<c:if test="${vo.status=='false'}">
   <input type="radio" class="px" id="keyword" value="1" name="classify.status"/>是<br />
  <input type="radio" class="px" id="keyword" value="0" name="classify.status" checked/>否
</c:if>

<c:if test="${vo.status=='true'}">
  <input type="radio" class="px" id="keyword" value="1" name="classify.status" checked />是<br />
  <input type="radio" class="px" id="keyword" value="0" name="classify.status" />否
</c:if>
  
  </TD>
  <TD>&nbsp;</TD>
</TR>
<TR>
  <TH></TH>
  <TD><button type="submit"  name="button"  class="btnGreen left" >保存</button>
  	<div class="clr"></div>
  	</TD>
  </TR>
  </TBODY>
</TABLE>
  </form>
  </div> 

        </div>
        
        <div class="clr"></div>
      </div>
    </div>
  </div> 

<!--底部-->
  	</div>
<include file="Public:footer"/>